package xin.yogee.ms.module.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import xin.yogee.ms.module.sys.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 前台用户 服务类
 * </p>
 *
 * @author jackieQ
 * @since 2019-02-14
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser getByPhone(String phone);

    List<SysUser> getListByDepartId(String departId);

    List<SysUser> getTreeList();

    SysUser getLeaderByUserId(String userId);

    List<SysUser> getAllUserByDepartId(String nodeId);

    SysUser getLeaderByLeaderId(String userId);

    SysUser getUserDepartById(String publisherId);

    SysUser getById(String id);

    IPage<SysUser> getList(Page<SysUser> ylUserPage);
}
